package cn.shawrainia.notedemo.service;

import cn.shawrainia.notedemo.domain.User;
import com.tencentcloudapi.sms.v20210111.models.SendStatusStatisticsResponse;

public interface INoteService {

    /**
     * 发送短信
     * @param userId 用户id
     * @param phone  手机号码
     * @return
     */
    User send(Long userId, String phone);

    /**
     * 统计短信发送数量
     * @param beginTime
     * @param endTime
     * @return
     */
    SendStatusStatisticsResponse SendStatusStatistics(String beginTime, String endTime);
}